#include "create_room.h"
#include "ui_create_room.h"

create_room::create_room(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::create_room)
{
    ui->setupUi(this);

    //背景窗口设置
    this->setAttribute(Qt::WA_TranslucentBackground, true);     //设置窗体透明
    this->setWindowFlags(windowFlags() | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);   //设置无边框

//    //设置显示窗口带背景阴影
//    QGraphicsDropShadowEffect *shadow = new QGraphicsDropShadowEffect(this);//实例阴影shadow
//    shadow->setOffset(0, 0);                //设置阴影偏移
//    shadow->setColor(QColor("#444444"));    //设置阴影颜色
//    shadow->setBlurRadius(18);              //设置阴影圆角

//    this->ui->widget->setGraphicsEffect(shadow);


}

create_room::~create_room()
{
    delete ui;
}

void create_room::on_toolButton_exit_clicked()
{
    this->reject();
}

void create_room::on_pushButton_ok_clicked()
{
    lineEdit_str = ui->lineEdit->text();
    this->accept();
}

QString create_room::getStr()
{
    return lineEdit_str;
}

void create_room::on_pushButton_exit_clicked()
{
    this->reject();
}
